import request from '@/utils/request'
import {
  PageResultRoleInfoVo,
  DeepRequired,
  RolePageQuery,
} from '../../interface'

/**
 * 获取角色分页
 * /role/more
 */
export function getRoleMore(params: GetRoleMoreParams) {
  const paramsInput = {
    ...params.pageQuery,
  }
  return request.get<DeepRequired<PageResultRoleInfoVo>>(`/role/more`, {
    params: paramsInput,
  })
}

interface GetRoleMoreParams {
  pageQuery: RolePageQuery
}
